package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 上报记录对象 emergency_record
 *
 * @author ruoyi
 * @date 2021-08-10
 */
public class EmergencyRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Long erId;

    /** 类型id */
    @Excel(name = "类型id")
    private Long erType;
    private String erTypeName;

    /** 用户id */
    @Excel(name = "用户id")
    private Long publicuserId;
    private String UserName;

    /** 未响应/已响应 */
    @Excel(name = "未响应/已响应")
    private Long erState;

    /** 内容 */
    @Excel(name = "内容")
    private String erContent;

    /** 经度 */
    @Excel(name = "经度")
    private String erLon;

    /** 上传附件 */
    @Excel(name = "上传附件")
    private String erUrl;

    /** 纬度 */
    @Excel(name = "纬度")
    private String erLat;

    /** 地址 */
    @Excel(name = "地址")
    private String erAddress;

    /** 生成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "生成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date erCreattime;

    /** 响应工作人员 */
    @Excel(name = "响应工作人员")
    private Long clientId;

    /** 响应时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "响应时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date erUpdatetime;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date erEndtime;

    /** 处理附件 */
    @Excel(name = "处理附件")
    private String erEndurl;

    /** 处理结果 */
    @Excel(name = "处理结果")
    private String erEndcontent;
    private List<RecordEnclosu> recordEnclosu;

    public List<RecordEnclosu> getRecordEnclosu() {
        return recordEnclosu;
    }

    public void setRecordEnclosu(List<RecordEnclosu> recordEnclosu) {
        this.recordEnclosu = recordEnclosu;
    }

    public void setErId(Long erId)
    {
        this.erId = erId;
    }

    public String getErTypeName() {
        return erTypeName;
    }

    public void setErTypeName(String erTypeName) {
        this.erTypeName = erTypeName;
    }

    public Long getErId()
    {
        return erId;
    }
    public void setErType(Long erType)
    {
        this.erType = erType;
    }

    public String getUserName() {
        return UserName;
    }

    public void setUserName(String userName) {
        UserName = userName;
    }

    public Long getErType()
    {
        return erType;
    }
    public void setPublicuserId(Long publicuserId)
    {
        this.publicuserId = publicuserId;
    }

    public Long getPublicuserId()
    {
        return publicuserId;
    }
    public void setErState(Long erState)
    {
        this.erState = erState;
    }

    public Long getErState()
    {
        return erState;
    }
    public void setErContent(String erContent)
    {
        this.erContent = erContent;
    }

    public String getErContent()
    {
        return erContent;
    }
    public void setErLon(String erLon)
    {
        this.erLon = erLon;
    }

    public String getErLon()
    {
        return erLon;
    }
    public void setErUrl(String erUrl)
    {
        this.erUrl = erUrl;
    }

    public String getErUrl()
    {
        return erUrl;
    }
    public void setErLat(String erLat)
    {
        this.erLat = erLat;
    }

    public String getErLat()
    {
        return erLat;
    }
    public void setErAddress(String erAddress)
    {
        this.erAddress = erAddress;
    }

    public String getErAddress()
    {
        return erAddress;
    }
    public void setErCreattime(Date erCreattime)
    {
        this.erCreattime = erCreattime;
    }

    public Date getErCreattime()
    {
        return erCreattime;
    }
    public void setClientId(Long clientId)
    {
        this.clientId = clientId;
    }

    public Long getClientId()
    {
        return clientId;
    }
    public void setErUpdatetime(Date erUpdatetime)
    {
        this.erUpdatetime = erUpdatetime;
    }

    public Date getErUpdatetime()
    {
        return erUpdatetime;
    }
    public void setErEndtime(Date erEndtime)
    {
        this.erEndtime = erEndtime;
    }

    public Date getErEndtime()
    {
        return erEndtime;
    }
    public void setErEndurl(String erEndurl)
    {
        this.erEndurl = erEndurl;
    }

    public String getErEndurl()
    {
        return erEndurl;
    }
    public void setErEndcontent(String erEndcontent)
    {
        this.erEndcontent = erEndcontent;
    }

    public String getErEndcontent()
    {
        return erEndcontent;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("erId", getErId())
                .append("erType", getErType())
                .append("publicuserId", getPublicuserId())
                .append("erState", getErState())
                .append("erContent", getErContent())
                .append("erLon", getErLon())
                .append("erUrl", getErUrl())
                .append("erLat", getErLat())
                .append("erAddress", getErAddress())
                .append("erCreattime", getErCreattime())
                .append("clientId", getClientId())
                .append("erUpdatetime", getErUpdatetime())
                .append("erEndtime", getErEndtime())
                .append("erEndurl", getErEndurl())
                .append("erEndcontent", getErEndcontent())
                .toString();
    }
}